package com.farm.shop.service;


import com.farm.common.utils.Query;
import com.farm.shop.domain.FarmDishDO;

import java.util.List;
import java.util.Map;

/**
 * 菜品
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-09-06 19:44:49
 */
public interface FarmDishService {

    FarmDishDO get(Long id);

    List<FarmDishDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(FarmDishDO farmDish);

    int update(FarmDishDO farmDish);

    int remove(Long id);

    int batchRemove(Long[] ids);

    /**
     * search
     *
     * @param keyword 参数
     * @return List<FarmDishDO>
     */
    List<FarmDishDO> search(String keyword);

    List<FarmDishDO> searchName(Map<String, Object> map);

    int searchNameCount(Map<String, Object> map);
}
